﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="voteshow.aspx.cs" Inherits="voteshow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>在线调查</title>
    <link href="inc/css.css" rel="stylesheet" type="text/css">
</head>
<body>
    <form id="form1" runat="server">
   <div>
    <br>
			<%if(vdt!=null){%>
			
			
			
			<TABLE id="Table1" align="center" cellSpacing="1" bgcolor="#dddddd" cellPadding="3" width="500"
				border="0">
				<TR bgcolor="#efefef">
					<TD colspan="3" align="center" class="b12-22"><strong><font color="#ff0000">
                        <asp:Label ID="lbltitle" runat="server" Text=""></asp:Label></font></strong></TD>
				</TR>
				<%for(int i=0;i<vdt.Rows.Count;i++){%>
				<TR bgcolor="#f8f8f8">
					<TD width="160" class="b12-22"><%=vdt.Rows[i]["vote"].ToString()%></TD>
					<TD width="200" class="b12-22">
						<table border="0" width='<%=vdt.Rows[i]["count"].ToString()%>' height="13" bgcolor='<%=vdt.Rows[i]["color"].ToString()%>' cellspacing="0" cellpadding="0" bordercolorlight="#000000" bordercolordark="#ffffff">
							<tr>
								<td width="100%" style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; BORDER-BOTTOM: 1px solid"
									valign="middle"></td>
							</tr>
						</table>
					</TD>
					<TD align="center" class="b12-22"><%=vdt.Rows[i]["count"].ToString()%>票</TD>
				</TR>
				<%}%>
				<TR bgcolor="#efefef">
					<TD colspan="3" align="center" class="b12-22" style="height: 28px">共计投票：<asp:Label ID="lblCounts" runat="server" Text="0"></asp:Label><b><font color="red"></font></b>票</TD>
				</TR>
			</TABLE>
			<%}%>
			<p align="center"><input type="button" value="返回首页" onclick="javascript:window.location='index.aspx';">&nbsp;<input type="button" value="点击关闭" onclick="javascript:window.close();"></p>
    </div>
    </form>
</body>
</html>
